﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class GRZX_WSXY_MyFocus : Base
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {

            SetMeta();
            PopulateList();
        }
    }
    protected void btnSearch_Click(object sender, EventArgs e)
    {
        PopulateList();
    }

    public void PopulateList()
    {
       
        int Count = 0;
        Client objClient=Client.GetCurrent();
        if (objClient == null)
            return;
        List<GZ.GZJiaJ> GZJiaJS = GZ.GetAllGZJiaJByConditon(txtTimeFrom.Text, txtTimeTo.Text, objClient.ID);
        Count += GZJiaJS.Count;
        lstGZFD.DataSource = GZJiaJS;
        lstGZFD.DataBind();

        List<GZ.GZPX> GZPXS = GZ.GetAllGZPXByConditon(txtTimeFrom.Text, txtTimeTo.Text, objClient.ID);
        Count += GZPXS.Count;
        lstGZPX.DataSource = GZPXS;
        lstGZPX.DataBind();


        List<GZ.GZLS> GZLSS = GZ.GetAllGZLSByConditon(txtTimeFrom.Text, txtTimeTo.Text, objClient.ID);
        Count += GZLSS.Count;
        lstGZLS.DataSource = GZLSS;
        lstGZLS.DataBind();

        List<GZ.GZJJ> GZJGS = GZ.GetAllGZJJByConditon(txtTimeFrom.Text, txtTimeTo.Text, objClient.ID);
        Count += GZJGS.Count;
        lstGZJG.DataSource = GZJGS;
        lstGZJG.DataBind();

        lblCount.Text = Count.ToString();

    }
   


    public void SetMeta()
    {
       
        this.SetMeta("我的关注-我是学员-求学网", "求学网_家教辅导_网上家教辅导_企业培训_个人培训_网上培训", "求学网是一个给您提供网上家教辅导的平台，方便您无论在哪里都能够学习到新的东西");

    }
}